using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class JumpState : IState
{
    public JumpState(FSM manager)
    {
        this.manager = manager;
    }




    public override void OnEnter()
    {
        manager.animator.Play("Jump");
    }

    public override void OnExit()
    {
        
    }

    public override void OnFixedUpdate()
    {
        manager.Move();
        manager.Jump(); 
    }

    public override void OnUpdate()
    {
       if(manager.isJump==false)
        {
            manager.TranssitionState(StateType.Idle);
        }
    }

    

    
}
